package com.abc.cloud.service;

import com.abc.cloud.dto.notice.PageDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.NoticeEntity;

import java.util.List;
import java.util.Map;

/**
 * 通知表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-11-29 13:19:41
 */
public interface NoticeService extends IService<NoticeEntity> {

    PageUtil queryPage(Map<String, Object> params);

    void sendNotice(String title, String content, Long userId, String username, Long targetId, String fromUsername, Integer receiverType, Integer type);

    PageDto getList(Map<String, Object> params);

    PageUtil getAllList(Map<String, Object> params);

    void updateNoticeStatus(List<Long> noticeIds, Integer status);

    boolean addNotice(Long userId, String username, String title, String content, String targetUsername, Integer receiverType, Integer type);
}

